package com.atguigu.mall.product.service;

import com.atguigu.mall.product.vo.AttrEntityVO;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.mall.product.entity.AttrEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author Mr·L
 * @email 907298149@qq.com
 * @date 2021-12-02 20:39:46
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    AttrEntityVO getAttrById(Long attrId);

    void saveAttrEntityVO(AttrEntityVO attr);

    void updateAttrEntityVO(AttrEntityVO attr);
    /**
     * 根据分类id 查询 属性集合
     */
    List<AttrEntity> queryListByCategoryId(Long categoryId);
}

